//include protection
#ifndef MD5WRAPPER_H
#define MD5WRAPPER_H

#include <string>
#include "MD5.h"

class md5wrapper{
	private:
		MD5 *md5;
		/*
		 * internal hash function, calling
		 * the basic methods from md5.h
		 */	
		std::string hashit(std::string text);
		/*
		 * converts the numeric giets to
		 * a valid std::string
		 */
		std::string convToString(unsigned char *bytes);
	public:
		//constructor
		md5wrapper();
		//destructor
		~md5wrapper();
		
		std::string getHashFromString(std::string text);
};

#endif
